<template>
    <div>
<button>{{xxx.msg}}</button>
    </div>
</template>

<script>
export default {
    //接收provide传递的数据
    //不建议修改数据
    inject: ['xxx'],
        
        
    }
</script>

<style  scoped>
button{
    width: 100px;
    height: 100px;
    background-color: red;
}
</style>